import request from '@/utils/request'

// 查询出院费用总计列表
export function listDischarge(query) {
  return request({
    url: '/hospital/discharge/list',
    method: 'get',
    params: query
  })
}

// 查询出院费用总计详细
export function getDischarge(dischargeId) {
  return request({
    url: '/hospital/discharge/' + dischargeId,
    method: 'get'
  })
}

// 新增出院费用总计
export function addDischarge(data) {
  return request({
    url: '/hospital/discharge',
    method: 'post',
    data: data
  })
}

// 修改出院费用总计
export function updateDischarge(data) {
  return request({
    url: '/hospital/discharge',
    method: 'put',
    data: data
  })
}

// 删除出院费用总计
export function delDischarge(dischargeId) {
  return request({
    url: '/hospital/discharge/' + dischargeId,
    method: 'delete'
  })
}

export function delDischarge2(dischargeId) {
  return request({
    url: '/hospital/discharge/remove2/' + dischargeId,
    method: 'delete'
  })
}
